<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>房型管理</title>
<script type="text/javascript" th:src="@{/bootstrap3/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/jquery.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/bootstrap.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/npm.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/popper.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/bootstrap3/js/bootstrap-popover.js}"></script>
<script type="text/javascript" th:src="@{/js/jquery.dropdown.js}"></script>
<link rel="stylesheet" type="text/css" th:href="@{/bootstrap3/css/bootstrap-theme.css}"/>
<link rel="stylesheet" type="text/css" th:href="@{/bootstrap3/css/bootstrap.css}" />
<link rel="stylesheet" type="text/css" th:href="@{/bootstrap3/css/bootstrap-theme.min.css}"/>
<link rel="stylesheet" type="text/css" th:href="@{/bootstrap3/css/bootstrap.min.css}" />
</head>
<script type="text/javascript">
	function getthecategory(code){
		$("#admin_main_content").load("getthecategory?code="+code);
	}
</script>
<body>
<div class="container-fluid">
	<div class="panel panel-default">
		<div class="panel-body" style="height: 450px;overflow: auto;">
			<table class="table table-responsive">
				<thead>
					<tr>
						<th>序号</th>
						<th>类型</th>
						<th>编号</th>
						<th>床价</th>
						<th>房价</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr th:each="category,CategoryStatus:${categories}">
						<td th:text="${category.id}"></td>
						<td th:text="${category.name}"></td>
						<td th:text="${category.code}"></td>
						<td th:text="${category.bedprice}"></td>
						<td th:text="${category.roomprice}"></td>
						<td>
							<a href="javascript:void(0)" th:onclick="getthecategory([[${category.code}]])" class="btn btn-info btn-sm">详情</a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
</body>
</html>
